home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / ENET.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  3.4 KB  |  132 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ENET.a
  3. ;
  4. ;    Contains:    Ethernet Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__ENET__') = 'UNDEFINED' THEN
  21. __ENET__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  30.     include 'OSUtils.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'Memory.a'                                            ;
  34.  
  35. ENetSetGeneral                    EQU        253                    ;Set "general" mode
  36. ENetGetInfo                        EQU        252                    ;Get info
  37. ENetRdCancel                    EQU        251                    ;Cancel read
  38. ENetRead                        EQU        250                    ;Read
  39. ENetWrite                        EQU        249                    ;Write
  40. ENetDetachPH                    EQU        248                    ;Detach protocol handler
  41. ENetAttachPH                    EQU        247                    ;Attach protocol handler
  42. ENetAddMulti                    EQU        246                    ;Add a multicast address
  43. ENetDelMulti                    EQU        245                    ;Delete a multicast address
  44. EAddrRType                        EQU        'eadr'
  45.  
  46. ; typedef struct EParamBlock  EParamBlock, *EParamBlkPtr
  47. EParamBlock             RECORD    0
  48. qLink                     ds.l   1        ; offset: $0 (0)        ;General EParams
  49. qType                     ds.w   1        ; offset: $4 (4)        ;queue type
  50. ioTrap                     ds.w   1        ; offset: $6 (6)        ;routine trap
  51. ioCmdAddr                 ds.l   1        ; offset: $8 (8)        ;routine address
  52. ioCompletion             ds.l   1        ; offset: $C (12)        ;completion routine
  53. ioResult                 ds.w   1        ; offset: $10 (16)        ;result code
  54. ioNamePtr                 ds.l   1        ; offset: $12 (18)        ;->filename
  55. ioVRefNum                 ds.w   1        ; offset: $16 (22)        ;volume reference or drive number
  56. ioRefNum                 ds.w   1        ; offset: $18 (24)        ;driver reference number
  57. csCode                     ds.w   1        ; offset: $1A (26)        ;Call command code
  58. eProtType                 ds.w   1        ; offset: $1C (28)        ;Ethernet protocol type
  59. ePointer                 ds.l   1        ; offset: $1E (30)        ;No support for PowerPC code
  60. eBuffSize                 ds.w   1        ; offset: $22 (34)        ;buffer size
  61. eDataSize                 ds.w   1        ; offset: $24 (36)        ;number of bytes read
  62.                          ORG 28
  63. eMultiAddr                 ds.b   6        ; offset: $1C (28)        ;Multicast Address
  64.                          ORG 38
  65. sizeof                     EQU *            ; size:   $26 (38)
  66.                         ENDR
  67.  
  68. ;
  69. ; pascal OSErr EWrite(EParamBlkPtr thePBptr, Boolean async)
  70. ;
  71.     IF GENERATINGCFM THEN
  72.         IMPORT_CFM_FUNCTION    EWrite
  73.     ENDIF
  74.  
  75. ;
  76. ; pascal OSErr EAttachPH(EParamBlkPtr thePBptr, Boolean async)
  77. ;
  78.     IF GENERATINGCFM THEN
  79.         IMPORT_CFM_FUNCTION    EAttachPH
  80.     ENDIF
  81.  
  82. ;
  83. ; pascal OSErr EDetachPH(EParamBlkPtr thePBptr, Boolean async)
  84. ;
  85.     IF GENERATINGCFM THEN
  86.         IMPORT_CFM_FUNCTION    EDetachPH
  87.     ENDIF
  88.  
  89. ;
  90. ; pascal OSErr ERead(EParamBlkPtr thePBptr, Boolean async)
  91. ;
  92.     IF GENERATINGCFM THEN
  93.         IMPORT_CFM_FUNCTION    ERead
  94.     ENDIF
  95.  
  96. ;
  97. ; pascal OSErr ERdCancel(EParamBlkPtr thePBptr, Boolean async)
  98. ;
  99.     IF GENERATINGCFM THEN
  100.         IMPORT_CFM_FUNCTION    ERdCancel
  101.     ENDIF
  102.  
  103. ;
  104. ; pascal OSErr EGetInfo(EParamBlkPtr thePBptr, Boolean async)
  105. ;
  106.     IF GENERATINGCFM THEN
  107.         IMPORT_CFM_FUNCTION    EGetInfo
  108.     ENDIF
  109.  
  110. ;
  111. ; pascal OSErr ESetGeneral(EParamBlkPtr thePBptr, Boolean async)
  112. ;
  113.     IF GENERATINGCFM THEN
  114.         IMPORT_CFM_FUNCTION    ESetGeneral
  115.     ENDIF
  116.  
  117. ;
  118. ; pascal OSErr EAddMulti(EParamBlkPtr thePBptr, Boolean async)
  119. ;
  120.     IF GENERATINGCFM THEN
  121.         IMPORT_CFM_FUNCTION    EAddMulti
  122.     ENDIF
  123.  
  124. ;
  125. ; pascal OSErr EDelMulti(EParamBlkPtr thePBptr, Boolean async)
  126. ;
  127.     IF GENERATINGCFM THEN
  128.         IMPORT_CFM_FUNCTION    EDelMulti
  129.     ENDIF
  130.  
  131.     ENDIF ; __ENET__
  132.